package com.zsy.mapper;

import com.zsy.pojo.Electric_Power;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface electric_power_Mapper {

    @Select("select * from power_consumption where record_id = #{record_id}")
    Electric_Power findByElectricPowerRecordId(int record_id);

    @Select("SELECT MAX(record_id) AS total_records FROM power_consumption;")
    int getAll();
}
